package com.hl.card.modular.system.service;

import com.hl.card.common.util.ResponseObject;
import org.springframework.ui.ModelMap;

import javax.servlet.http.HttpServletRequest;

/**
 * java类简单作用描述
 *
 * @ProjectName: distdev
 * @Package: com.hl.card.modular.pack.service
 * @ClassName: ${TYPE_NAME}
 * @Description: java类作用描述
 * @Author: 作者姓名
 * @CreateDate: 2018/7/9 17:28
 * @UpdateUser: Neil.Zhou
 * @UpdateDate: 2018/7/9 17:28
 * @UpdateRemark: The modified content
 * @Version: 1.0
 * <p>Copyright: Copyright (c) 2018</p>
 */
public interface IAccessRight {
    public String baseCheckWxAccess(HttpServletRequest request, String optId, String toPage, ModelMap model);
    public String baseCheckAccess(HttpServletRequest request, String toPage);
    public boolean checkSysOptAccessRight(HttpServletRequest request);
    public boolean getWxAccessRight(String wxOpenId, String rightCode, String clientIP);
    public boolean getWxAccessRight(HttpServletRequest request, int expireMinutes);
    public boolean checkWxSysOptAccessRight(String optId, String clientIP, String optName);
    public boolean checkWxSysOptAccessRight(String optId, String clientIP);
    public boolean checkSysOptAccessRight(String clientIP);
    public boolean checkManualAwardAccessRight(String clientIP);
    public boolean checkAccessRight(HttpServletRequest request, int expireMinutes);
    public String checkUser(String userId);
    public boolean getAccessRight(String phone, String rightCode, String clientIP);
    public boolean getAccessRight(HttpServletRequest request, int expireMinutes);
    public boolean getAccessRightCode(HttpServletRequest request, int expireMinutes);
    public boolean sendSMSCode(String phoneNum, String clientIP);
}
